package utils;

import java.awt.*;
import java.io.*;

/**
 * Created by Yaksha on 1/22/14.
 */
public class CustomFont {
    private Font ttfBase = null;
    private Font ttfReal = null;

    public CustomFont() {
        try {
            InputStream myStream = new BufferedInputStream(new FileInputStream("./assis/PARCHM.TTF"));
            ttfBase = Font.createFont(Font.TRUETYPE_FONT, myStream);
            ttfReal = ttfBase.deriveFont(Font.BOLD, 80);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (FontFormatException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public Font getFont() {
        return ttfReal;
    }

}
